package com.jeespring.service;

import com.jeespring.dto.ResponseDTO;
import com.jeespring.entity.Storage;

import java.util.List;

/**
 * @Title: StorageService
 * @Description:
 * @Author 张朝阳
 * @Date 2020/11/29 13:51
 */
public interface StorageService {

    /**
     * 查询库存
     */
    List<Storage> query(Storage storage);

    /**
     * 扣减库存
     */
    ResponseDTO decrStorage(Storage storage);
}
